package org.custom.ibatis.session;

/**
 * @author DJJ_F
 * @version 1.0
 * @date 2025/02/26
 * @description 表示对sql标签的封装
 */
public class MapperStatement {
    /**
     * sql语句
     */
    private String sql;
    /**
     * 返回值类型
     */
    private String resultType;

    public MapperStatement() {
    }

    public MapperStatement(String sql, String resultType) {
        this.sql = sql;
        this.resultType = resultType;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }

    @Override
    public String toString() {
        return "MapperStatement{" +
                "sql='" + sql + '\'' +
                ", resultType='" + resultType + '\'' +
                '}';
    }
}
